import request from '../utils/request'; 

// 查询文列表章
export function getAll(cid){
    return request(`/api/articles?cid=${cid}`,{
        method:'GET'
    });
}

// 查询文章详情
export function getOne(id){
    return request(`/api/article?id=${id}`,{
        method:'GET'
    });
}